/*--------------------------------------------------*/
/*VirtualSociety System ServiceModuleTemplate Main File*/
/*CreateBy SRPLab                */
/*CreateDate: 2010-3-28  */
/*--------------------------------------------------*/
#include "SRPSAGGLibEngine_VSHeader.h"

void SRPAPI SAggImgBrushClass_C_SetImg(void *Object,VS_UINT32 Width,VS_UINT32 Height,void *ImgBuf)
{
	struct StructOfSAggImgBrushClass *AggImgBrushClass;
	
	AggImgBrushClass = (struct StructOfSAggImgBrushClass *)Object;
	AggImgBrushClass ->ImgBuf = ImgBuf;
	AggImgBrushClass ->ImgWidth = Width;
	AggImgBrushClass ->ImgHeight = Height;
    return;
}

VS_INT32 SRPAPI SAggImgBrushClass_SetImg(void)
{
	void *Object;
	class ClassOfSRPBinBufInterface *BinBuf;
	VS_INT32 Width;
	VS_INT32 Height;

	Object = pSRP ->LuaToObject(1);
	Width = pSRP ->LuaToInt(2);
	Height = pSRP ->LuaToInt(3);
	BinBuf = pSRP ->LuaToBinBuf(4);
    SAggImgBrushClass_C_SetImg(Object,Width,Height,BinBuf);
    return 0;
}

void SRPAPI SAggImgBrushClass_OVL_C_Clear(void *Object)
{
	struct StructOfSAggImgBrushClass *AggImgBrushClass;

	AggImgBrushClass = (struct StructOfSAggImgBrushClass *)Object;
	AggImgBrushClass ->ImgAccessType = 0;
	AggImgBrushClass ->ImgBuf = NULL;
	AggImgBrushClass ->ImgWidth = 0;
	AggImgBrushClass ->ImgHeight = 0;
	INIT_UUID(AggImgBrushClass ->ImgTransForm);
	AggImgBrushClass ->SmoothType = 0;
	INIT_UUID(AggImgBrushClass ->TransForm);
	AggImgBrushClass->Type = 1;
	AggImgBrushClass->EnableAlpha = VS_FALSE;
    return;
}

